<html>
<head>
    <meta charset="utf-8">
</head>
<body>
<h1>Testing...</h1>
<script>
//	var wsServer = 'ws://127.0.0.1:9502';
	var wsServer = 'ws://192.168.56.100:9502';
	var websocket = new WebSocket(wsServer);
	websocket.onopen = function (evt) {
		console.log("Connected to WebSocket server.");
	};

	websocket.onclose = function (evt) {
		console.log("Disconnected");
	};

	websocket.onmessage = function (evt) {
		console.log('Retrieved data from server: ' + evt.data);
	};

	websocket.onerror = function (evt, e) {
		console.log('Error occured: ' + evt.data);
	};

</script>
</body>
</html>